package org.taobao.ibatiside.ui.view;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.navigator.CommonNavigator;

public class BatisNavigator extends CommonNavigator {
	public static final String VIEW_ID="org.taobao.ibatiside.ui.overview";
	@Override
	public void createPartControl(Composite aParent) {
		super.createPartControl(aParent);
		showLastExpandedNode();
	}
	@Override
	public void saveState(IMemento aMemento) {
		super.saveState(aMemento);
		saveLastExpandedNode();
	}
	private void saveLastExpandedNode() {
		Object[] nodes = getCommonViewer().getVisibleExpandedElements();
		if (nodes.length > 0){
			
		}
	}
	private void showLastExpandedNode() {
		
	}
}
